package me.bincker.formwork.web.core.exception

import org.springframework.http.HttpStatus

open class BadRequestException : WebException {
    constructor() : this("无效请求")
    constructor(message: String) : this(message, message)
    constructor(message: String, responseMessage: String) : this(message, responseMessage, null)
    constructor(cause: Throwable) : this(cause, cause.message ?: "无效请求")
    constructor(cause: Throwable, responseMessage: String) : this(cause.message ?: responseMessage, responseMessage, cause)
    constructor(message: String, responseMessage: String, cause: Throwable?) : super(HttpStatus.BAD_REQUEST, message, responseMessage, cause)
}